﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPFServices.Models.Domain
{
    public class Bom
    {

    }

    public class BomDto:AuditableEntity
    {
        public int Id { get; set; }
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BomCode { get; set; }
        /// <summary>
        /// BOM版本
        /// </summary>
        public string BomVersion { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string UniteName { get; set; }
        /// <summary>
        /// 默认Bom
        /// </summary>
        public bool DefaultBom { get; set; }
        /// <summary>
        /// 日产量
        /// </summary>
        public string DailyOutput { get; set; }
        /// <summary>
        /// 工艺路线Id
        /// </summary>
        public int ProcessRouteId { get; set; }
        /// <summary>
        /// 工艺路线名称
        /// </summary>
        public string ProcessRouteName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    public class CreateorUpdateBomDto
    {
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BomCode { get; set; }
        /// <summary>
        /// 默认Bom
        /// </summary>
        public bool DefaultBom { get; set; }
        /// <summary>
        /// BOM版本
        /// </summary>
        public string BomVersion { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 工艺路线Id
        /// </summary>
        public int ProcessRouteId { get; set; }
        /// <summary>
        /// 日产量
        /// </summary>
        public string DailyOutput { get; set; }
        /// <summary>
        /// 父级Bom Id
        /// </summary>
        public int BomParentId { get; set; } = 0;
    }

    /// <summary>
    ///Bom查询DTO
    /// </summary>
    public class SearchBomDto : PageModel
    {
        public string? BomCode { get; set; }
        public string? ProductName { get; set; }
        public string? BomVersion { get; set; }
    }
}
